package main

import "iot-base/devc/common/loader"

func test() {
	ProtocolConnect <- Connect{"156416", &loader.Protocol{
		"serial",
		01,
		map[string]interface{}{"Name": "COM2", "BaudRate": 9600, "DataBits": 8, "Parity": "N", "StopBits": 1},
		//map[string]interface{}{"IP":"127.0.0.1","Port":"502"},
		[]loader.PropertyScan{
			loader.PropertyScan{
				loader.Scan{
					"03",
					0,
					10},
				[]loader.PropertyExplain{
					loader.PropertyExplain{
						"1321615",
						"",
						0,
						loader.Param{
							2,
							2,
							"float32",
							true,
							true,
							nil}}}}},
		[]loader.ServiceCmd{loader.ServiceCmd{
			"string",
			&[]loader.ServiceParam{
				loader.ServiceParam{
					"test",
					loader.Param{
						2,
						2,
						"int16",
						false,
						false,
						nil,
					}}},
			nil,
			[]loader.OutParam{
				loader.OutParam{
					"string",
					loader.Param{
						10,
						2,
						"int16",
						false,
						false,
						nil,
					}}},
		},
		},
	}}
}
